package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SuperBalanceDetailMapper;
import com.ruoyi.system.domain.SuperBalanceDetail;
import com.ruoyi.system.service.ISuperBalanceDetailService;

/**
 * 余额明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-16
 */
@Service
public class SuperBalanceDetailServiceImpl implements ISuperBalanceDetailService 
{
    @Autowired
    private SuperBalanceDetailMapper superBalanceDetailMapper;

    /**
     * 查询余额明细
     * 
     * @param id 余额明细主键
     * @return 余额明细
     */
    @Override
    public SuperBalanceDetail selectSuperBalanceDetailById(Long id)
    {
        return superBalanceDetailMapper.selectSuperBalanceDetailById(id);
    }

    /**
     * 查询余额明细列表
     * 
     * @param superBalanceDetail 余额明细
     * @return 余额明细
     */
    @Override
    public List<SuperBalanceDetail> selectSuperBalanceDetailList(SuperBalanceDetail superBalanceDetail)
    {
        return superBalanceDetailMapper.selectSuperBalanceDetailList(superBalanceDetail);
    }

    /**
     * 新增余额明细
     * 
     * @param superBalanceDetail 余额明细
     * @return 结果
     */
    @Override
    public int insertSuperBalanceDetail(SuperBalanceDetail superBalanceDetail)
    {
        return superBalanceDetailMapper.insertSuperBalanceDetail(superBalanceDetail);
    }

    /**
     * 修改余额明细
     * 
     * @param superBalanceDetail 余额明细
     * @return 结果
     */
    @Override
    public int updateSuperBalanceDetail(SuperBalanceDetail superBalanceDetail)
    {
        return superBalanceDetailMapper.updateSuperBalanceDetail(superBalanceDetail);
    }

    /**
     * 批量删除余额明细
     * 
     * @param ids 需要删除的余额明细主键
     * @return 结果
     */
    @Override
    public int deleteSuperBalanceDetailByIds(Long[] ids)
    {
        return superBalanceDetailMapper.deleteSuperBalanceDetailByIds(ids);
    }

    /**
     * 删除余额明细信息
     * 
     * @param id 余额明细主键
     * @return 结果
     */
    @Override
    public int deleteSuperBalanceDetailById(Long id)
    {
        return superBalanceDetailMapper.deleteSuperBalanceDetailById(id);
    }

    @Override
    public List<SuperBalanceDetail> getUserId(Long userId) {
        return superBalanceDetailMapper.getUserId(userId);
    }

    @Override
    public List<SuperBalanceDetail> getUserIdIncrease(Long userId) {
        return superBalanceDetailMapper.getUserIdIncrease(userId);
    }
}
